/*
 * Tester.cpp
 *
 *  Created on: Oct 10, 2014
 *      Authors: Avihay Avitan & Stefan Farcas
 */
#include <stddef.h>
#include "PassPrioritizer/PassPrioritizer.h"

#include "TimeStampUtils.h"

using namespace SatelliteNameSpace;

using namespace PassPrioritizerNameSpace;
using namespace PassVectorSpace;

int main ()
{
	SatelliteAER sat1;
	sat1.setTimeStamp(getNowLongTimeSeconds());
	PassVector passOcc(sat1);
	usleep(999999);
	SatelliteAER sat2;
	sat2.setTimeStamp(getNowLongTimeSeconds());
	PassVector passOcc2(sat2);

	PassPrioritizer prioritizer;
	prioritizer.add(&passOcc2);
	prioritizer.add(&passOcc);

	if (prioritizer.hasNext())
		std::cout << "High Prio:" << prioritizer.getNext()->getPassStartTime() << std::endl ;
	if (prioritizer.hasNext())
		std::cout << "Low Prio:" <<  prioritizer.getNext()->getPassStartTime() << std::endl ;

}
